<?php
/**
 * Created by PhpStorm.
 * User: qttx
 * Date: 2019/5/31
 * Time: 13:57
 */
namespace app\admin\controller;

use app\admin\model\InterturnModel;

class Interturn extends BaseController
{
    public function __construct()
    {
        parent::__construct();
        $this->interturn = new InterturnModel();
    }
    /**
     * 会员转出记录
     */
    public function interturn_list()
    {
        $list = $this->interturn->interturn_list();
        $page = $list->render();
        $count = count($list);
        $this->assign('list',$list);
        $this->assign('page',$page);
        $this->assign('count',$count);
        return view('interturn/interturn_list');
    }
    /**
     * 会员转出记录删除
    */
    public function interturn_dell()
    {
        $res = $this->interturn->interturn_dell();
        if($res)
        {
            return ['code'=>'1','message'=>'删除成功'];
        }else{
            return ['code'=>'0','message'=>'删除失败'];
        }
    }
}